package wpc;

public class Mouse {
    private String name;
    public Mouse(String name){
        this.name = name;
    }
    public void printInfo(){
        System.out.println("名字：" + this.name);
    }
    public void squeak(){
        System.out.println(this.name + "叽叽叽");
    }
    public void stealFood(){
        System.out.println(this.name + "偷吃鱼啦");
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return  this.name;
    }

}
